﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_PuestoPermiso.aspx.cs" Inherits="SICON_INT.PaginasWebs.frm_PuestoPermiso" %>

<!DOCTYPE html>

<html> 
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
    <title></title>
    <link href="../../../Recursos/HojasEstilo/Sicon.css" rel="stylesheet" type="text/css" />
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-glyphicons.css" rel="stylesheet"/>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"/>
    <%--<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open Sans:300,400,500,700"/>--%>
    <link rel="shortcut icon" type="image/x-icon" href="~/Recursos/Imagenes/sicon.png"/>
    <script  type="text/javascript"> javascript: window.history.forward(1); </script>
    <script type="text/javascript">
        function Alerta_Eliminar()
        {
            var respuesta = confirm("¿Desea eliminar <%=seleccion%>?");
            if (respuesta == true)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form2" runat="server" class =" form-horizontal" role="form">
    <div class =" container">
        <div class="page-header">
            <h1>Asignación de permiso</h1>
        </div>
        <div class="lead">
            <%--<asp:ImageButton ID="btnAgregar" runat="server" CssClass="btn" ImageUrl="~/Recursos/Imagenes/glyphicons_446_floppy_save.png" OnClick="btnAgregar_Click" ValidationGroup="Group1" />--%>
            <asp:ImageButton ID="btnSalir" runat="server" CssClass="btn" ImageUrl="~/Recursos/Imagenes/glyphicons_388_exit.png" OnClick="btnSalir_Click" />
        </div>
<%--        <div class="alert alert-info alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <strong> Lista de permisos 
                </strong>
        </div>--%>
        <div style="margin-bottom: 10px" class="control-group">
            <label class="col-lg-2 control-label" for="lbxModulo">Módulos</label>
            <div style="margin-bottom: 10px" class="col-lg-10">
                <asp:ListBox ID="lbxModulo" runat="server" CssClass="form-control" Height="130px" autopostback="true" OnSelectedIndexChanged="lbxModulo_SelectedIndexChanged"></asp:ListBox>
                <%--<input id="txtBaseDatos" runat="server" type="text" class="form-control" name="txtBaseDatos" value="" placeholder="Nombre Base de datos" autofocus="autofocus" required="required" />--%>
            </div>
       </div>
       <div style="margin-bottom: 10px" class="control-group">
            <label class="col-lg-2 control-label" for="lbxPermisos">Permisos</label>
            <div style="margin-bottom: 10px" class="col-lg-10">
                <asp:ListBox ID="lbxPermisos" runat="server" CssClass="form-control"></asp:ListBox>
                <%--<input id="txtBaseDatos" runat="server" type="text" class="form-control" name="txtBaseDatos" value="" placeholder="Nombre Base de datos" autofocus="autofocus" required="required" />--%>
            </div>
            <div class="lead">
                <asp:ImageButton ID="btnGuardarPermisoPuesto" runat="server" CssClass="btn" ImageUrl="~/Recursos/Imagenes/glyphicons_446_floppy_save.png" OnClick="btnGuardarPermisoPuesto_Click"/>
                <asp:ImageButton ID="btnEliminarPermisos" runat="server" CssClass="btn" ImageUrl="~/Recursos/Imagenes/glyphicons_191_circle_minus.png" OnClientClick="return Alerta_Eliminar()" OnClick="btnEliminarPermisos_Click"/>
            </div>
        </div>
        <div style ="margin-bottom: 10px" class ="control-group">
            <div class="table-responsive">
                <asp:GridView ID="gvPuestoPermiso" runat="server" CssClass="table table-bordered table-hover" OnSelectedIndexChanged="gvPuestoPermiso_SelectedIndexChanged" >
                    <Columns>
                        <asp:CommandField ButtonType="Image" ShowSelectButton="True" SelectImageUrl="~/Recursos/Imagenes/glyphicons_217_circle_arrow_right.png" />
                    </Columns>
                </asp:GridView>
            </div>
        </div>
     </div>
     </form>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="../../../Scripts/jquery-1.9.1.js"></script>
    <script src="../../../Scripts/bootstrap.min.js"></script>
</body>
</html>
